<%@page import="java.util.List"%>
<%@page import="com.demoweb.model.dto.Board"%>
<%@page import="com.demoweb.model.dto.Membership"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
 
<!DOCTYPE html>

<html>
<head>
	<meta charset="utf-8" />
	<title>글쓰기</title>
	<link rel="Stylesheet" href="/demoweb/styles/default.css" />
	<link rel="Stylesheet" href="/demoweb/styles/input.css" />	
</head>
<body>
<!--  <div id="pageContainer">
		
		<div style="padding-top:25px;text-align:center">
				<input type ="search" id="keyword" name="keyword"/>
				
				
			<input type="button" value="글쓰기" 
				style="width:300px;height:25px"
				onclick="location.href='writeform2.action';" />
			<br /><br /> -->
			
	<div id="pageContainer">
	
		<% pageContext.include("/WEB-INF/views/include/header.jsp"); %>
			<div id="pageContainer">
		<div style="padding-top:25px;text-align:center">
		<div id="inputcontent">
		  
		        
		        <form action="writeform0.action" method="post">
		        
		        <div class="inputsubtitle; text-align:center-left"><h1>사용자 평</h1></div>
		     
		        <table>
		         
		            <tr>
		                <th>작성자</th>
		                <td>
		                	<%=((Membership)session.getAttribute("loginuser")).getMemberId()%>
		                </td>
		            </tr>
		          	<tr>
		          		<th>제목</th>
		          		<td> 
		          			<textarea
		          				name="title" cols="76" row="2"></textarea>	
		            	</td>
		            </tr>
		            <tr>	
		                <th>내용</th>
		                <td>		                    
		                    <textarea 
		                    	name="content" cols="76" rows="6"></textarea>
		                </td>
		            </tr>
		        </table>
   		       
 		        <div class="buttons"/>
		        	<!-- 아래 a 링크는 input type='submit' 버튼을 누르는 효과 발생 -->		        	
		        	<a href="javascript:document.forms[0].submit();">글쓰기</a>
	<br /><br /><br /><br /><br /> 

		<% List<Board> boards0 = (List<Board>)request.getAttribute("boards"); %>
	<div id="pageContainer">
		<div style="padding-top:25px;text-align:center">
		<div id="inputcontent">
		
		 <table border="1" align="center">
				<tr style="height:60px">
		            <tr><% for (Board board : boards0) { %>
		            <tr style="background-color: #FFD9EC; height:40px">
				
			<tr>
				<th style="width:50px">작성자</th>
		                <td style="width:400px"> 
		                	<%= board.getWriter() %>
		                </td>
		            </tr>
		            <tr>
		          		<th style="width:50px;text-align:center">제목</th>
		          		<td style="width:400px"> 
		          			<%= board.getTitle() %>	
		            	</td>
		            </tr>
		            <tr>
		              <th style="width:50px">내용</th>
		                <td style="width:400px">		                    
		                       <%= board.getContent() %>	
		                       <% } %>
		                </td>
		           </tr>
		            </tr>		            
		        </table>
		        </form>	  
		        </div>
		        </div>
		        </div>
		    
		        </div> 
		    
		        </body>
		        </html>